package org.jeecg.modules.online.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("onl_auth_relation")
@Data
public class OnlAuthRelation implements Serializable {
    private static final long serialVersionUID = 1;
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    //角色id
    private String roleId;
    //权限id
    private String authId;
    //1字段 2按钮 3数据权限
    private Integer type;
    private String cgformId;
    private String authMode;

    public OnlAuthRelation setId(String id) {
        this.id = id;
        return this;
    }

    public OnlAuthRelation setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    public OnlAuthRelation setAuthId(String authId) {
        this.authId = authId;
        return this;
    }

    public OnlAuthRelation setType(Integer type) {
        this.type = type;
        return this;
    }

    public OnlAuthRelation setCgformId(String cgformId) {
        this.cgformId = cgformId;
        return this;
    }

    public OnlAuthRelation setAuthMode(String authMode) {
        this.authMode = authMode;
        return this;
    }

}
